var caseLogsTable = {
    id: "caseLogsTable",
    seItem: null,
    table: null,
    layerIndex: -1
};

caseLogsTable.initColumn = function () {
    var columns = [
        {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
        {title: '操作时间', field: 'createtime', align: 'center', valign: 'middle', width: 50},
        {title: '操作人', field: 'singlePerson', align: 'center', valign: 'middle', width: 30},
        {title: '操作类型', field: 'logtype', align: 'center', valign: 'middle', width: 30},
        {title: '变更记录', field: 'message', align: 'left', valign: 'middle', width: 150}
    ];
    return columns;
};

caseLogsTable.search = function () {
    caseLogsTable.table.refresh();
};

$(function () {
    var defaultColunms = caseLogsTable.initColumn();
    var reservationsId =$("#reservationsId").val();
    var table = new BSTable(caseLogsTable.id, "/customerStatusLog/caseLogsList/" + reservationsId, defaultColunms);
    caseLogsTable.table = table.init();
    caseLogsTable.search();
    $('#caseLogsTable').bootstrapTable('resetView', {height: $(window).height() - 40});
});
